package com.aote.gradleproject.controller;

import com.aote.gradleproject.pojo.JsonResult;
import com.aote.gradleproject.pojo.ServiceResult;
import lombok.extern.slf4j.Slf4j;
import org.json.JSONObject;
import org.springframework.http.MediaType;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * 支付宝生活缴费接口
 * @author 张琪
 * @date 2021/7/20 11:21
 */
@RestController
@Slf4j
@RequestMapping("/alipay")
public class LifePayController {

    @GetMapping(value = "/200001", produces = MediaType.APPLICATION_JSON_VALUE)
    public JsonResult queryUserInfo() {
        log.debug("获取用户信息");
        HashMap<String, String> info = new HashMap<>(8);
        info.put("ceshi", "ceshi");
        ServiceResult serviceResult = new ServiceResult();
        serviceResult.setResult(info);
        return JsonResult.success(serviceResult);
    }
}
